<?php

class Silk_Mapi_Helper_Points extends Mage_Core_Helper_Abstract
{
    public function getCustomerPoint($customerId)
    {
        $customer = Mage::getModel('rewardpoints/customer')->load($customerId, 'customer_id');
        if ($customer && $customer->getId()) {
            return $customer->getPointBalance();
        }
        return 0;
    }
}
	 